<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ include file="/commons/kindeditor.jsp" %>
<script type="text/javascript">
    $(function() {
    	//初始化类目选择和图片上传器
		TAOTAO.init({fun:function(node){}});
        $('#weChatLocationEditForm').form({
            url : '${path}/admin/weChatLocation/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div style="padding:10px 10px 10px 10px">
        <form id="weChatLocationEditForm" method="post" enctype="multipart/form-data">
            <table class="grid">
				<input id="id" name="id" type="hidden" value="${weChatLocation.id}" />
                <tr>
                    <td>openId:</td>
					<td>
						<input id="openId" name="openId" type="text" placeholder="请输入openId" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.openId}" />
					</td>
				</tr>
                <tr>
                    <td>纬度:</td>
					<td>
						<input id="latitude" name="latitude" type="text" placeholder="请输入纬度" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.latitude}" />
					</td>
				</tr>
                <tr>
                    <td>经度:</td>
					<td>
						<input id="longitude" name="longitude" type="text" placeholder="请输入经度" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.longitude}" />
					</td>
				</tr>
                <tr>
                    <td>精度:</td>
					<td>
						<input id="precision" name="precision" type="text" placeholder="请输入精度" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.precision}" />
					</td>
				</tr>
                <tr>
                    <td>坐标地址:</td>
					<td>
						<input id="lable" name="lable" type="text" placeholder="请输入坐标地址" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.lable}" />
					</td>
				</tr>
                <tr>
                    <td>状态 1正常 0停用:</td>
					<td>
						<select id="status" name="status" class="easyui-combobox" data-options="width:140,height:29,editable:false,panelHeight:'auto'">
							<option value="1">正常</option>
							<option value="0">停用</option>
						</select>
						<script type="text/javascript">
							//下拉框赋值
				       		 $("#status").val('${weChatLocation.status}'); 
						</script>
					</td>
				</tr>
                <tr>
                    <td>创建时间:</td>
					<td>
						<input id="createdTime" name="createdTime" type="text" placeholder="请输入创建时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${weChatLocation.createdTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>修改时间:</td>
					<td>
						<input id="updatedTime" name="updatedTime" type="text" placeholder="请输入修改时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${weChatLocation.updatedTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>删除时间:</td>
					<td>
						<input id="deletedTime" name="deletedTime" type="text" placeholder="请输入删除时间" class="easyui-datetimebox" readonly="readonly" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${weChatLocation.deletedTime}'/>"/>
					</td>
				</tr>
                <tr>
                    <td>编辑人:</td>
					<td>
						<input id="createdEditor" name="createdEditor" type="text" placeholder="请输入编辑人" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.createdEditor}" />
					</td>
				</tr>
                <tr>
                    <td>更新人:</td>
					<td>
						<input id="updatedEditor" name="updatedEditor" type="text" placeholder="请输入更新人" class=" easyui-textbox" data-options="required:true"  value="${weChatLocation.updatedEditor}" />
					</td>
				</tr>
            </table>
        </form>
    </div>
